package matlap.client.services.school;

import java.util.List;

import matlap.shared.School;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface SchoolServiceAsync {

	void getSchools(AsyncCallback<List<School>> asyncCallback);

	void getSchoolsBy(String name, String locality,
			AsyncCallback<List<School>> callback);

	void getSchoolsNumber(AsyncCallback<Integer> callback);

	void selectSchoolsLocality(AsyncCallback<List<School>> callback);

	void selectSchoolsName(AsyncCallback<List<School>> callback);

	void getSchoolId(String name, AsyncCallback<Integer> callback);

	void insertSchool(String schoolName, String localityName,
			AsyncCallback<Void> callback);

	void getLocalityId(String name, AsyncCallback<Integer> callback);

	void selectLocality(AsyncCallback<List<String>> asyncCallback);

	void selectSchoolsNameByLocality(String localityName,
			AsyncCallback<List<String>> asyncCallback);

}
